package com.yxx.sys.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yxx
 * @since 2020-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String loginname;

    private String address;

    private Integer sex;

    private String remark;

    private String pwd;

    private Integer deptid;

    private LocalDateTime hiredate;

    private Integer mgr;

    private Integer available;

    private Integer ordernum;

    @ApiModelProperty(value = "用户类型[0超级管理员1，管理员，2普通用户]")
    private Integer type;

    @ApiModelProperty(value = "头像地址")
    private String imgpath;

    private String salt;

    /*
    * 领导名称
    * */
    @TableField(exist = false)
    private String leaderName;

    /*
    * 部门名称
    * */
    @TableField(exist = false)
    private String deptName;

}
